package com.ph.controller.personal;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ph.custom.annotation.MemberCache;

/**
 * 
 * @ClassName:  PersonalController   
 * @Description::个人中心相关action   
 * @author: lijie
 * @date:   2017年4月17日 上午10:03:50     
 * @Copyright: 2017
 */
@Controller
@RequestMapping("personal")
public class PersonalController {

	private static final Logger logger = LoggerFactory.getLogger(PersonalController.class);
	/**
	 * 
	 * @Title: loadAccountSecurity   
	 * @Description:加载个人中心   
	 * @param: @param request
	 * @param: @param model
	 * @param: @return      
	 * @return: String      
	 * @throws
	 */
	@MemberCache
	@RequestMapping(value = "/loadPersonal", method = RequestMethod.GET)
	public void loadAccountSecurity(HttpServletRequest request, Model model,HttpServletResponse response) {
		try {
			response.sendRedirect("/shopping/order/findOnlineOrders");// TODO:此处暂定位订单页面
		} catch (IOException e) {
			logger.error("加载个人中心  错误",e);
		}
	}
}
